<div class="worthlessShares index">
	<h2><?php __('Worthless Shares');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('LineNo');?></th>
			<th><?php echo $this->Paginator->sort('CommonID');?></th>
			<th><?php echo $this->Paginator->sort('OrderNo');?></th>
			<th><?php echo $this->Paginator->sort('BrokerReference');?></th>
			<th><?php echo $this->Paginator->sort('CompanyName');?></th>
			<th><?php echo $this->Paginator->sort('CompanyCode');?></th>
			<th><?php echo $this->Paginator->sort('RegdName1');?></th>
			<th><?php echo $this->Paginator->sort('RegdName2');?></th>
			<th><?php echo $this->Paginator->sort('RegdName3');?></th>
			<th><?php echo $this->Paginator->sort('RegdName4');?></th>
			<th><?php echo $this->Paginator->sort('RegdName5');?></th>
			<th><?php echo $this->Paginator->sort('RegdAd1');?></th>
			<th><?php echo $this->Paginator->sort('RegdAd2');?></th>
			<th><?php echo $this->Paginator->sort('RegdAd3');?></th>
			<th><?php echo $this->Paginator->sort('RegdAd4');?></th>
			<th><?php echo $this->Paginator->sort('RegdAd5');?></th>
			<th><?php echo $this->Paginator->sort('NumFigures');?></th>
			<th><?php echo $this->Paginator->sort('NumWords');?></th>
			<th><?php echo $this->Paginator->sort('Security');?></th>
			<th><?php echo $this->Paginator->sort('SRN');?></th>
			<th><?php echo $this->Paginator->sort('HIN');?></th>
			<th><?php echo $this->Paginator->sort('BrokerNameAdd');?></th>
			<th><?php echo $this->Paginator->sort('NewAd1');?></th>
			<th><?php echo $this->Paginator->sort('NewAd2');?></th>
			<th><?php echo $this->Paginator->sort('NewAd3');?></th>
			<th><?php echo $this->Paginator->sort('NewAd4');?></th>
			<th><?php echo $this->Paginator->sort('NewAd5');?></th>
			<th><?php echo $this->Paginator->sort('Email');?></th>
			<th><?php echo $this->Paginator->sort('Tel');?></th>
			<th><?php echo $this->Paginator->sort('CCName');?></th>
			<th><?php echo $this->Paginator->sort('CCNumber');?></th>
			<th><?php echo $this->Paginator->sort('CCExpiry');?></th>
			<th><?php echo $this->Paginator->sort('CCVerif');?></th>
			<th><?php echo $this->Paginator->sort('CCType');?></th>
			<th><?php echo $this->Paginator->sort('AmtRecd');?></th>
			<th><?php echo $this->Paginator->sort('Gross');?></th>
			<th><?php echo $this->Paginator->sort('GST');?></th>
			<th><?php echo $this->Paginator->sort('Date');?></th>
			<th><?php echo $this->Paginator->sort('DateDocRecd');?></th>
			<th><?php echo $this->Paginator->sort('DateForConv');?></th>
			<th><?php echo $this->Paginator->sort('DateForRego');?></th>
			<th><?php echo $this->Paginator->sort('Registry');?></th>
			<th><?php echo $this->Paginator->sort('Action');?></th>
			<th><?php echo $this->Paginator->sort('Status');?></th>
			<th><?php echo $this->Paginator->sort('parcelNumber');?></th>
			<th><?php echo $this->Paginator->sort('docfile');?></th>
			<th><?php echo $this->Paginator->sort('bankAuthorisationNumber');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($worthlessShares as $worthlessShare):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $worthlessShare['WorthlessShare']['LineNo']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['CommonID']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['OrderNo']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['BrokerReference']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['CompanyName']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['CompanyCode']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['RegdName1']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['RegdName2']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['RegdName3']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['RegdName4']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['RegdName5']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['RegdAd1']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['RegdAd2']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['RegdAd3']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['RegdAd4']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['RegdAd5']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['NumFigures']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['NumWords']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['Security']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['SRN']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['HIN']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['BrokerNameAdd']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['NewAd1']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['NewAd2']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['NewAd3']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['NewAd4']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['NewAd5']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['Email']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['Tel']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['CCName']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['CCNumber']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['CCExpiry']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['CCVerif']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['CCType']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['AmtRecd']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['Gross']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['GST']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['Date']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['DateDocRecd']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['DateForConv']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['DateForRego']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['Registry']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['Action']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['Status']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['parcelNumber']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['docfile']; ?>&nbsp;</td>
		<td><?php echo $worthlessShare['WorthlessShare']['bankAuthorisationNumber']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View', true), array('action' => 'view', $worthlessShare['WorthlessShare']['LineNo'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $worthlessShare['WorthlessShare']['LineNo'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $worthlessShare['WorthlessShare']['LineNo']), null, sprintf(__('Are you sure you want to delete # %s?', true), $worthlessShare['WorthlessShare']['LineNo'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Worthless Share', true), array('action' => 'add')); ?></li>
	</ul>
</div>